<?php
/*
Template Name: Single Post
*/
?>
<?php get_header(); ?>


<div id="padd-content">
<?php if (have_posts()) : ?>
	<?php while (have_posts()) : ?>
		<?php the_post(); ?>
<?php
	global $post;
	if(is_page('Master Degree') or ($post->post_parent == 88) or in_category( 's2') ){
		echo '<div id="header-banner-s2"></div>';
	}
	else if (is_page('Visitors')){
		echo '<div id="header-banner-visitors"></div>';
	}
	else if (is_page('Parents')){
		echo '<div id="header-banner-parents"></div>';
	}
	else if (is_page('Students')){
		echo '<div id="header-banner-students"></div>';
	}
?>
<div id="padd-content-wrapper">
<div class="padd-post-group padd-post-group-single">
	<div class="padd-post-list padd-post-list-single">

		<div class="padd-post-item padd-post-item-single" id="post-<?php the_ID(); ?>">
			<div class="padd-post-item-title">
				<h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2>
			</div>
			<div class="padd-post-item-entry">
				<?php the_content(); ?>
				<?php wp_link_pages(array('before' => '<p class="pages"><strong>Pages:</strong> ', 'after' => '</p>', 'next_or_number' => 'number')); ?>
			</div>
		</div>
	<?php endwhile; ?>
	</div>
</div>

<?php else : ?>

<div class="padd-post-group padd-post-group-result padd-post-group-error">
	<div class="padd-post-group-title">
		<h2>Not Found</h2>
	</div>
	<div class="padd-post-group-descr">
		<p>Sorry, but you are looking for a category that isn't here.</p>
	</div>
</div>

<?php endif; ?>

	</div>
</div>

<?php
	global $post;
	if(is_page('Master Degree') or ($post->post_parent == 88) or in_category( 's2') ){
		get_sidebar(s2);
	}
	else if (is_page('Visitors')){
		get_sidebar(visitor);
	}
	else if (is_page('Parents')){
		get_sidebar(parents);
	}
	else if (is_page('Students')){
		get_sidebar(student);
	}
	else {
		get_sidebar();
	}
?>

<div class="padd-clear"></div>

<?php get_footer(); ?>
